﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Reviewer {
    /// <summary>
    /// 走法类
    /// </summary>
    public class Move {
        private int pieceIndex;
        private int fromX;
        private int fromY;
        private int toX;
        private int toY;

        public Move(int pIndex, int fX, int fY, int tX, int tY) {
            pieceIndex = pIndex;
            fromX = fX;
            fromY = fY;
            toX = tX;
            toY = tY;
        }

        /// <summary>
        /// 棋子序号
        /// </summary>
        public int PieceIndex { get { return pieceIndex; } }
        /// <summary>
        /// 棋子的起始X坐标
        /// </summary>
        public int FromX { get { return fromX; } }
        /// <summary>
        /// 棋子的起始Y坐标
        /// </summary>
        public int FromY { get { return fromY; } }
        /// <summary>
        /// 棋子的终止X坐标
        /// </summary>
        public int ToX { get { return toX; } }
        /// <summary>
        /// 棋子的终止Y坐标
        /// </summary>
        public int ToY { get { return toY; } }
    }
}
